#!/bin/bash
touch res.txt
for i in `seq 0 9`
do
iperf -c $1 -p $2 >> res.txt
sleep 5
done
grep Mbits res.txt
